<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员</title>
<meta content="会员中心" name="keywords">
<meta content="会员中心" name="description">
<base href="{:$smarty.const.PUBLIC_DIR}/">
<script language="JavaScript" src="common/js/jquery.js"></script>
<script language="JavaScript" src="member/js/css.js"></script>
<link href="member/style/member.css" rel="stylesheet" type="text/css">
</head>
<body style="background-color:#fff">
{:include file="./head.tpl"}
<div id="main">
  <form>
    <table cellpadding="0" cellspacing="1" class="table_reg">
      <caption>
      新用户注册
      </caption>
    <tr>
<th width="12%">会员类型</th>
<td width="*"><input name="groupId" value="1" type="radio" class="posted" />个人 <input name="groupId" value="2" type="radio" class="posted" checked="checked" class="posted" />企业</td>
  </tr>
        <tr>
        <th width="12%">用户名：</th>
        <td width="*"><input type="text" name="username" id="username" value="" size="20" maxlength="20" class="posted" /> 4-20字母、数字、下划线或减号的组合, 首字符必须为字母或数字</td>
      </tr>
      <tr>
        <th>密　码：</th>
        <td><input name="password" type="password" id="password" size="20" maxlength="16" class="posted" /> 6-20位不含空格的字符串</td>
      </tr>
        <tr>
        <th>Email地址：</th>
        <td><input name="email" type="text" id="email" size="30" class="posted" />
        </td>
      </tr>
     <tr>
        <th>验证码：</th>
        <td><input name="validateCode" type="text" size="6" maxlength="6" class="posted" />
      <img name="" align="absmiddle" style="cursor:pointer;" id="validateImage" src="{:$smarty.const.BOOT_URL}/common/validateCode" alt="点击重新获取验证码！" onclick="setValidateCode();" />
        </td>
      </tr>
      <tr>
      <th></th>
        <td>
<input type="submit" name="dosubmit" id="registerform" value=" 注 册 " />
<input type="reset" name="reset" value=" 重 置 " />	 <a href="{:$smarty.const.BOOT_URL}/member/login">已经注册过了？马上登陆...</a>
</td>
      </tr>
    </table>
  </form> 
  <span id="toggle_pannel"></span>
  </div>
{:include file="./foot.tpl"}
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.core.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.draggable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.dialog.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.post.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/common.js"></script>
<script language="javascript" type="text/javascript">

$(document).ready(function(){
	$("form").post({
		sendUrl:"{:$smarty.const.BOOT_URL}/member/register/check",
		trueJs:"redirect('{:$smarty.const.BOOT_URL}/member/login');",
		falseJs:"setValidateCode();"
	});
});

function setValidateCode()
{
	$("#validateImage").attr('src','{:$smarty.const.BOOT_URL}/common/validateCode/'+Math.ceil(Math.random()*1000));
}

</script>
</body>
</html>